package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;

@Setter@Getter
public class QueryObject {
    //当前页
    private int page;

    //每页显示条数
    private int rows;

    //分页开始的索引
    public int getBeginIndex(){
        return (page - 1) * rows;
    }
}
